package org.soft.carbon_neutral.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.soft.carbon_neutral.entity.Equipment;
import org.soft.carbon_neutral.vo.EquipmentVO;

import java.util.List;

/**
 * 设备持久层
 */
@Mapper
public interface EquipmentMapper extends BaseMapper<Equipment> {

//    @Select("SELECT DISTINCT e.id,e.create_time,e.location,e.threshold,e.model_type,e.model          v.type,v.time,v.concentration FROM `equipment` as e,`equipment_value` as v WHERE e.id=v.id AND e.id=#{id};")
//   List<EquipmentVO> selectEquipInfoById(@Param("id") String id);
}
